package dya318.graphics;

//矩形
public class Rectangle extends Graphics{
    private double length;
    private double height;

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double calculated(){
        super.patting();
        double area =0;
        area = getHeight()*getLength();
        return area;
    }
}
